﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="progress.aspx.cs" Inherits="appleader_projects_progress" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="projectid" DataSourceID="SqlDataSource1" Width="100%">
            <Columns>
                <asp:BoundField DataField="projectid" HeaderText="projectid" 
                    InsertVisible="False" ReadOnly="True" SortExpression="projectid" 
                    Visible="False" />
                <asp:BoundField DataField="projectname" HeaderText="项目" 
                    SortExpression="projectname" />
                <asp:BoundField DataField="creator" HeaderText="creator" 
                    SortExpression="creator" Visible="False" />
                <asp:BoundField DataField="modelid" HeaderText="使用模型" 
                    SortExpression="modelid" />
                <asp:BoundField DataField="methodid" HeaderText="评估方法" 
                    SortExpression="methodid" />
                <asp:BoundField DataField="starttime" HeaderText="开始时间" 
                    SortExpression="starttime" />
                <asp:BoundField DataField="endtime" HeaderText="结束时间" 
                    SortExpression="endtime" />
                <asp:CommandField ShowSelectButton="True" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
            SelectCommand="SELECT [projectid], [projectname], [creator], [modelid], [methodid], [starttime], [endtime] FROM [project] WHERE ([organizationid] = @organizationid)">
            <SelectParameters>
                <asp:SessionParameter Name="organizationid" SessionField="organizationid" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
